{literal}
<script type="text/javascript">$().ready(function(){$('#addProduct').validate();});</script>
{/literal}
<h1>Edytujesz grupę</h1>

<form method="post" id="addProduct">
{mainoptions title="Dane dla poszczególnych wersji językowych"}
	{assign var=class value=colapse}
	{foreach from=$languages item=lang}
	{capture assign=title}Dane języka: {$lang->getName()}{/capture}
	{mainoptions title=$title class=$class}
	<table cellpadding="0" cellspacing="0" width="100%" class="commonTable">
		<tr>
			<th>Opis</th>
			<td><textarea name="description[{$lang->getId()}]">{assign var=desc value=$obj->getDescription($lang->getId())}{$desc->getDescription()}</textarea></td>
		</tr>
	</table>
	{/mainoptions}
	{assign var=class value=expand}
	{assign var=required value=1}
	{/foreach}
{/mainoptions}
{mainoptions}
	<input type="submit" value="Zapisz" />
	<input type="button" value="Anuluj" onclick="document.location='{url property=index}'" />
{/mainoptions}
</form>